package dbobjects;

import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 26.11.2008
 * Time: 14:26:24
 */
@DOTable(table = "db_object_template", pk = "id")
public class DBObjectTemplate extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "object_template_name")
    private String name;
    @DOField(column = "root_template_id")
    private Integer rootId;
    @DOField(column = "journal_id")
    private Integer journalId;
    @DOField(column = "is_deleted")
    private Integer deleted;

    public DBObjectTemplate() {
        this.id = UNASSIGNEDINT;
        this.name = UNASSIGNEDSTRING;
        this.rootId = UNASSIGNEDINT;
        this.journalId = UNASSIGNEDINT;
        this.deleted = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRootId() {
        return rootId;
    }

    public void setRootId(Integer rootId) {
        this.rootId = rootId;
    }

    public String toString() {
        return name;
    }

    public void setJournalId(Integer journalId) {
        this.journalId = journalId;
    }

    public Integer getJournalId() {
        return journalId;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
